package design_4_builder.demo2.builder;

/**
 * 构建 有武器职业
 *
 * @author wangsong
 * @email 1720696548@qq.com
 * @date 2022/4/12 14:46
 */
public class GameCharacterA extends AbstractGameCharacterBuilder {

	public GameCharacterA() {
		super();
	}

	@Override
	public GameCharacterA theBody(String theBody) {
		super.theBody(theBody);
		return this;
	}

	@Override
	public	GameCharacterA head(String head) {
		super.head(head);
		return this;
	}

	@Override
	public	GameCharacterA hand(String hand) {
		super.hand(hand);
		return this;
	}

	@Override
	public GameCharacterA leg(String leg) {
		super.leg(leg);
		return this;
	}

	// 构建武器
	public	GameCharacterA weapons(String leg) {
		role.setWeapons(leg);
		return this;
	}
}
